package com.yxlgateway.service;



import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yxlcommon.common.pojo.RespBean;
import com.yxlcommon.common.pojo.WorkComment;
import com.yxlcommon.common.vo.WorkCommentVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yxl
 * @since 2021-11-07
 */
public interface WorkCommentService extends IService<WorkComment> {

    List<WorkCommentVo> listCommentByWorkId(Long workId);

    RespBean addComment(WorkComment workComment);

    RespBean<IPage<WorkCommentVo>> getAllWorkCommentsByPage(Integer currentPage, Integer size, WorkComment workComment);

    RespBean<Integer> changeWorkCommentById(WorkComment workComment);

    RespBean<WorkCommentVo> selectCommentById(WorkCommentVo workCommentVo);

    RespBean<Integer> adminAddComment(WorkComment workComment);

    RespBean<Integer> deleteWorkCommentById(WorkComment workComment);
}
